<template>
  <div></div>
</template>
<script setup>
import { useRoute } from "vue-router";
import ajax from "../util/http";
const route = useRoute();

ajax
  .post("/star/wechat/oauth_url", {
    callback_url:
      "http://m.star.ms100.com.cn/test/station?cid=" + route.query.cid,
  })
  .then((res) => {
    if (res.code == 1) {
      window.location.href = res.data.url;
      //   window.location.href = "http://localhost:3000/?code=08138vFa1nKNfC0nyoHa1CbrPg238vFof&state=1639053376/#/signin";
    }
  });
//
</script>